import request from '@/utils/request'

// 查询用户pk记录列表
export function listPk(query) {
  return request({
    url: '/recitation_admin/pk/list',
    method: 'get',
    params: query
  })
}

// 查询用户pk记录详细
export function getPk(pkId) {
  return request({
    url: '/recitation_admin/pk/' + pkId,
    method: 'get'
  })
}

// 新增用户pk记录
export function addPk(data) {
  return request({
    url: '/recitation/pk',
    method: 'post',
    data: data
  })
}

// 修改用户pk记录
export function updatePk(data) {
  return request({
    url: '/recitation/pk',
    method: 'put',
    data: data
  })
}

// 删除用户pk记录
export function delPk(pkId) {
  return request({
    url: '/recitation/pk/' + pkId,
    method: 'delete'
  })
}
